package test1.pojo.reflectDO;

public class User extends Person{

    private static final String nickname = "user";

    static {
        System.out.println("静态代码块");
    }
    private String name;

    public Integer age;

    public User(){

    }
    public User(String name, Integer age){
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
